package com.tedu;

import java.util.ArrayList;

/**
 * @author CCFu
 * @version 1.0
 * @date 2021/12/17 17:17
 */
public class t1 {
    public static void main(String[] args) {
        ArrayList<Object> l = new ArrayList<>();
        l.add(new a(1,2));
        l.add(new a(1,2));
        l.add(new a(1,2));
        System.out.println(l);
    }
}
 class  a{
    int s;
    int f;

    public a() {
    }

    public a(int s, int f) {
        this.s = s;
        this.f = f;
    }

     @Override
     public String toString() {
         return "a{" +
                 "s=" + s +
                 ", f=" + f +
                 '}';
     }
 }
